﻿<div class="topmenuwrapper">
    <ul class="topmenu">
        @{
            if (Html.ViewContext.RequestContext.HttpContext.Request.AppRelativeCurrentExecutionFilePath.Contains("Home"))
            {
            <li id="home" class="selected"><a href="/">网站首页</a></li>
            }
            else
            {
            <li id="home"><a href="/">网站首页</a></li>
            }

            if (Html.ViewContext.RequestContext.HttpContext.Request.AppRelativeCurrentExecutionFilePath.Contains("Company"))
            {
                <li class="selected"><a href="/Company/BriefIntro">公司简介</a></li>
            }
            else
            {
                <li><a href="/Company/BriefIntro">公司简介</a></li>
            }

            if (Html.ViewContext.RequestContext.HttpContext.Request.AppRelativeCurrentExecutionFilePath.Contains("Product"))
            {
                <li class="selected"><a href="/Product">产品信息</a></li>
            }
            else
            {
                <li><a href="/Product">产品信息</a></li>
            }
             if (Html.ViewContext.RequestContext.HttpContext.Request.AppRelativeCurrentExecutionFilePath.Contains("Download"))
            {
                <li class="selected"><a href="/Download/List">资料下载</a></li>
            }
             else
             {
                <li><a href="/Download/List">资料下载</a></li>
             }
             if (Html.ViewContext.RequestContext.HttpContext.Request.AppRelativeCurrentExecutionFilePath.Contains("Contact"))
            {
                <li class="selected"><a href="/Contact">联系我们</a></li>
            }
             else
             {
                <li><a href="/Contact">联系我们</a></li>
             }
        }
       
        
        
        
    </ul>
</div>
